package com.biz.primus.ms.member.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntityPKIncrement;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 会员等级
 *
 * @author jun.liu
 * @date 2017年10月22日
 * @reviewer
 * @see
 */
@Entity
@Table(name = "member_level")
@Data
@EqualsAndHashCode(callSuper = true)
public class MemberLevel extends BaseEntityPKIncrement
{

    /**
     * 会员等级
     */
    @Column(nullable = false, unique = true)
    private Integer level;

    /**
     * 会员等级说明
     */
    @Column(length = 32, nullable = false)
    private String levelDesc;

    /**
     * 消费上限
     */
    @Column
    private BigDecimal upperLimit;

    /**
     * 消费下限
     */
    @Column
    private BigDecimal lowerLimit;

    /**
     * 是否最小
     */
    @Column
    private Boolean min = false;


}
